﻿<Window x:Name="window" x:Class="RhythmDetect.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Miku节拍检测生成器2" Icon="Images/mikudetecticon.png" ResizeMode="CanMinimize" Background="{x:Null}" KeyDown="Window_KeyDown" mc:Ignorable="d" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" Height="511" Width="493" WindowStyle="None" AllowsTransparency="True" WindowStartupLocation="CenterScreen">
	<Window.Resources>
		<Storyboard x:Key="Beating">
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)" Storyboard.TargetName="imgMikuBack">
				<SplineDoubleKeyFrame KeyTime="0" Value="1"/>
				<SplineDoubleKeyFrame KeyTime="0:0:0.2" Value="1.2"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)" Storyboard.TargetName="imgMikuBack">
				<SplineDoubleKeyFrame KeyTime="0" Value="1"/>
				<SplineDoubleKeyFrame KeyTime="0:0:0.2" Value="1.1"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="imgMikuBack">
				<SplineDoubleKeyFrame KeyTime="0" Value="1"/>
				<SplineDoubleKeyFrame KeyTime="0:0:0.2" Value="0"/>
			</DoubleAnimationUsingKeyFrames>
			<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="imgMikuBack">
				<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Visible}"/>
				<DiscreteObjectKeyFrame KeyTime="0:0:0.2" Value="{x:Static Visibility.Hidden}"/>
			</ObjectAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="GridBg">
				<SplineDoubleKeyFrame KeyTime="0" Value="1"/>
				<SplineDoubleKeyFrame KeyTime="0:0:0.1" Value="0.6" KeySpline="0,0,0.52,1"/>
				<SplineDoubleKeyFrame KeyTime="0:0:0.2" Value="1" KeySpline="0.51,0,1,1"/>
			</DoubleAnimationUsingKeyFrames>
		</Storyboard>
		<Storyboard x:Key="Detect">
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="rectangle">
				<SplineDoubleKeyFrame KeyTime="0" Value="1"/>
				<SplineDoubleKeyFrame KeyTime="0:0:0.2" Value="0"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)" Storyboard.TargetName="rectangle">
				<SplineDoubleKeyFrame KeyTime="0" Value="1"/>
				<SplineDoubleKeyFrame KeyTime="0:0:0.2" Value="1.2"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)" Storyboard.TargetName="rectangle">
				<SplineDoubleKeyFrame KeyTime="0" Value="1"/>
				<SplineDoubleKeyFrame KeyTime="0:0:0.2" Value="1.2"/>
			</DoubleAnimationUsingKeyFrames>
		</Storyboard>
		<Storyboard x:Key="Bigin">
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="window">
				<SplineDoubleKeyFrame KeyTime="0" Value="0"/>
				<SplineDoubleKeyFrame KeyTime="0:0:0.6" Value="1"/>
			</DoubleAnimationUsingKeyFrames>
		</Storyboard>
		<Storyboard x:Key="Snow1">
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)" Storyboard.TargetName="snow1">
				<SplineDoubleKeyFrame KeyTime="0" Value="1"/>
				<SplineDoubleKeyFrame KeyTime="0:0:0.1" Value="1.2" KeySpline="0,0,0.49,1"/>
				<SplineDoubleKeyFrame KeyTime="0:0:0.2" Value="1" KeySpline="0.51,0,1,1"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)" Storyboard.TargetName="snow1">
				<SplineDoubleKeyFrame KeyTime="0" Value="1"/>
				<SplineDoubleKeyFrame KeyTime="0:0:0.1" Value="1.2" KeySpline="0,0,0.49,1"/>
				<SplineDoubleKeyFrame KeyTime="0:0:0.2" Value="1" KeySpline="0.51,0,1,1"/>
			</DoubleAnimationUsingKeyFrames>
		</Storyboard>
		<Storyboard x:Key="Snow2">
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)" Storyboard.TargetName="snow2">
				<SplineDoubleKeyFrame KeyTime="0" Value="1"/>
				<SplineDoubleKeyFrame KeyTime="0:0:0.1" Value="1.2" KeySpline="0,0,0.5,1"/>
				<SplineDoubleKeyFrame KeyTime="0:0:0.2" Value="1" KeySpline="0.48,0,1,1"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)" Storyboard.TargetName="snow2">
				<SplineDoubleKeyFrame KeyTime="0" Value="1"/>
				<SplineDoubleKeyFrame KeyTime="0:0:0.1" Value="1.2" KeySpline="0,0,0.5,1"/>
				<SplineDoubleKeyFrame KeyTime="0:0:0.2" Value="1" KeySpline="0.48,0,1,1"/>
			</DoubleAnimationUsingKeyFrames>
		</Storyboard>
		<Storyboard x:Key="Snow3">
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)" Storyboard.TargetName="snow3">
				<SplineDoubleKeyFrame KeyTime="0" Value="1"/>
				<SplineDoubleKeyFrame KeyTime="0:0:0.1" Value="1.2" KeySpline="0,0,0.51,1"/>
				<SplineDoubleKeyFrame KeyTime="0:0:0.2" Value="1" KeySpline="0.5,0,1,1"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)" Storyboard.TargetName="snow3">
				<SplineDoubleKeyFrame KeyTime="0" Value="1"/>
				<SplineDoubleKeyFrame KeyTime="0:0:0.1" Value="1.2" KeySpline="0,0,0.51,1"/>
				<SplineDoubleKeyFrame KeyTime="0:0:0.2" Value="1" KeySpline="0.5,0,1,1"/>
			</DoubleAnimationUsingKeyFrames>
		</Storyboard>
	</Window.Resources>
	<Window.Triggers>
		<EventTrigger RoutedEvent="FrameworkElement.Loaded">
			<BeginStoryboard Storyboard="{StaticResource Bigin}"/>
		</EventTrigger>
	</Window.Triggers>
    <Canvas x:Name="mainGrid">
		<Canvas x:Name="GridBg" Canvas.Top="9" Canvas.Left="30">
			<Image Source="Images/MikuBg.png" Stretch="Fill" Height="264" Canvas.Top="213" Width="464"/>
			<Image Height="132" Canvas.Left="239" Source="Images/mikutalk.png" Stretch="Fill" Canvas.Top="20" Width="194"/>
		</Canvas>
		<Image x:Name="snow1" Height="101.658" Canvas.Left="21.197" Source="Images/snow.png" Stretch="Fill" Canvas.Top="339.259" Width="101.658" RenderTransformOrigin="0.5,0.5">
			<Image.Effect>
				<DropShadowEffect BlurRadius="14"/>
			</Image.Effect>
			<Image.RenderTransform>
				<TransformGroup>
					<ScaleTransform/>
					<SkewTransform/>
					<RotateTransform Angle="22.839"/>
					<TranslateTransform/>
				</TransformGroup>
			</Image.RenderTransform>
		</Image>
		<Image x:Name="snow2" Height="94" Canvas.Left="225" Source="Images/snow.png" Stretch="Fill" Canvas.Top="288.326" Width="94" RenderTransformOrigin="0.5,0.5">
			<Image.Effect>
				<DropShadowEffect BlurRadius="14"/>
			</Image.Effect>
			<Image.RenderTransform>
				<TransformGroup>
					<ScaleTransform/>
					<SkewTransform/>
					<RotateTransform Angle="18.896"/>
					<TranslateTransform/>
				</TransformGroup>
			</Image.RenderTransform>
		</Image>
		<Image x:Name="snow3" Height="85" Canvas.Left="240" Source="Images/snow.png" Stretch="Fill" Canvas.Top="408.326" Width="85" RenderTransformOrigin="0.5,0.5">
			<Image.Effect>
				<DropShadowEffect BlurRadius="14"/>
			</Image.Effect>
			<Image.RenderTransform>
				<TransformGroup>
					<ScaleTransform/>
					<SkewTransform/>
					<RotateTransform Angle="-15.892"/>
					<TranslateTransform/>
				</TransformGroup>
			</Image.RenderTransform>
		</Image>
		<Image x:Name="imgMiku" Source="Images/Miku2/5.png" Stretch="Fill" Height="478" Width="326" Canvas.Top="8" Cursor="Hand" Canvas.Left="30">
			<Image.Effect>
				<DropShadowEffect BlurRadius="11"/>
			</Image.Effect>
		</Image>
		<Image x:Name="imgMikuBack" Source="Images/Miku2/5.png" Stretch="Fill" Height="478" Width="326" Canvas.Top="8" RenderTransformOrigin="0.5,0.5" Opacity="0" Cursor="Hand" Canvas.Left="30" Visibility="Hidden">
			<Image.RenderTransform>
				<TransformGroup>
					<ScaleTransform/>
					<SkewTransform/>
					<RotateTransform/>
					<TranslateTransform/>
				</TransformGroup>
			</Image.RenderTransform>
		</Image>
		<TextBox Height="28" x:Name="tbSetBeats" VerticalAlignment="Top" Width="114.03" Text="100" KeyDown="tbSetBeats_KeyDown" TextChanged="tbSetBeats_TextChanged" FontSize="16" TextAlignment="Center" Canvas.Left="347.97" Canvas.Top="434.837" FontWeight="Bold" Background="#7EFFFFFF" />
    	<Button Content="?" Height="28" HorizontalAlignment="Left" x:Name="btnAbout" Width="28" Canvas.Left="415" Canvas.Top="236" />
		<TextBlock x:Name="lbTime3" Canvas.Left="275" TextWrapping="Wrap" Canvas.Top="396.163" FontWeight="Bold">
			<TextBlock.Effect>
				<DropShadowEffect BlurRadius="14"/>
			</TextBlock.Effect><Run Language="zh-cn" Text="Beats"/></TextBlock>
		<TextBlock x:Name="lbBeatSpeed" Canvas.Left="274.999" TextWrapping="Wrap" Text="连按【F】或【J】开始计数" Canvas.Top="376.326" FontWeight="Bold">
			<TextBlock.Effect>
				<DropShadowEffect BlurRadius="14"/>
			</TextBlock.Effect>
		</TextBlock>
		<TextBlock x:Name="lbTime" Canvas.Left="274.999" TextWrapping="Wrap" Text="欢迎使用Miku节拍器" Canvas.Top="356.489" FontWeight="Bold">
			<TextBlock.Effect>
				<DropShadowEffect BlurRadius="14"/>
			</TextBlock.Effect>
		</TextBlock>
    	<Button Content="X" Height="28" HorizontalAlignment="Left" x:Name="btnExit" Width="28" Canvas.Left="447" Canvas.Top="236" />
		<TextBlock x:Name="lbTime2" Canvas.Left="275" TextWrapping="Wrap" Canvas.Top="416" FontWeight="Bold" MinWidth="200">
			<TextBlock.Effect>
				<DropShadowEffect BlurRadius="14"/>
			</TextBlock.Effect>
		</TextBlock>
		<TextBlock Canvas.Left="275" TextWrapping="Wrap" Canvas.Top="432.16" FontSize="24">
			<TextBlock.Effect>
				<DropShadowEffect BlurRadius="14"/>
			</TextBlock.Effect><Run Language="zh-cn" Text="BPM:"/></TextBlock>
		<TextBlock Canvas.Left="376.623" TextWrapping="Wrap" Canvas.Top="285.766" FontSize="37.333" FontWeight="Bold" Foreground="White"><TextBlock.Effect>
				<DropShadowEffect ShadowDepth="0" BlurRadius="12"/>
			</TextBlock.Effect><Run Language="zh-cn" Text="F   J"/></TextBlock>
		<TextBlock Canvas.Left="378.623" TextWrapping="Wrap" Canvas.Top="303.163"><Run Language="zh-cn" Text="Press Here!!"/></TextBlock>
		<Rectangle x:Name="rectangle" Height="52" Canvas.Left="360" Stroke="#CC626262" Canvas.Top="284" Width="102" Fill="#42000000" Opacity="0" RenderTransformOrigin="0.5,0.5">
			<Rectangle.RenderTransform>
				<TransformGroup>
					<ScaleTransform/>
					<SkewTransform/>
					<RotateTransform/>
					<TranslateTransform/>
				</TransformGroup>
			</Rectangle.RenderTransform>
		</Rectangle>
		<Rectangle x:Name="rtgDetect" Height="52" Canvas.Left="360" Stroke="#CC626262" Canvas.Top="284" Width="102" Fill="#42000000" Cursor="Hand"/>
		<TextBlock x:Name="lbMiku" Canvas.Left="283.85" TextWrapping="Wrap" Text="点我播放(*´v`) ミク" Canvas.Top="72" FontSize="18.667" Width="164.523" TextAlignment="Center">
			<TextBlock.Effect>
				<DropShadowEffect BlurRadius="10"/>
			</TextBlock.Effect>
		</TextBlock>
	</Canvas>
</Window>
